package com.yd.mvc.mobile;

import com.yd.app.service.common.LoggerService;
import com.yd.app.service.pc.messageService.MessageService;
import com.yd.domain.business.Message;
import com.yd.domain.commom.PageModel;
import com.yd.domain.searchParam.MessageParam;
import com.yd.mvc.baseController.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;

/**
 * @author zy
 * @create 2018-03-14 10:21
 * @desc
 **/
@RestController
@RequestMapping(value = "/dapi/test")
public class TestController extends BaseController{
    @Autowired
    private MessageService messageService;
    @Autowired
    private LoggerService loggerService;
    /**
     * @Author: zy
     * @Desc: 手机端测试ajax
     * @Date:  2018/3/14
     * @Param
     */
    @RequestMapping(value = "list",method = RequestMethod.POST)
    @ResponseBody
    public PageModel getMsgList(@RequestBody MessageParam messageParam){
        PageModel list=new PageModel();
        list=messageService.getMessageList(messageParam,1,5);
        return list;
        }
    }
